#
import argparse
from typing import Dict
from core.radar_core import RadarCore

class C001App(object):
    def __init__(self):
        self.name = 'apps.c001.c001_app.C001App'

    @staticmethod
    def startup(params: Dict = {}) -> None:
        print(f'第1章例程 v0.0.1')
        RadarCore.radar_eq()

def main(params:Dict = {}) -> None:
    C001App.startup(params=params)

def parse_args() -> argparse.Namespace:
    parser = argparse.ArgumentParser()
    parser.add_argument(
        '--run_mode', action='store',
        type=int, default=1, dest='run_mode',
        help='run mode'
    )
    return parser.parse_args()

if '__main__' == __name__:
    args = parse_args()
    params = vars(args)
    main(params=params)